<!DOCTYPE html>
<html>
  <head>
    <title><%= title %></title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
  </head>
  <body>
    <%- include("head",{title:'首页 -QF'})%>
    <h1><%= title %></h1>
    <p>Welcome to <%= title %></p>
    <p>wuahan2004 ---daydayup</p>
    <p><%= word%></p>
    <a ><%- msg%></a>
    <div>
      <%- tag%>    
      <%# 减号能解析变量也可以解析标签 这是注释标签%>

      <h2>用户名：<%- username%></h2>
      <h2>密码：<%- password%></h2>
    </div>

    <% if(username){  %>
      <h2>用户名：<%- username%></h2>
      <button>退出登录</button>
    <% }else{ %>
      <button onclick="window.location.href = '/login'">登录</button>
      <button onclick="window.location.href='/register'">注册</button>
      <% } %>


      <%  list.forEach((item,id)=>{ %>
        <p><%- item%>----<%- id%></p>
        <% }) %>
        <%- include foot %>
  </body>
</html>
